//
//  HFQAnimatedAlert.h
//  AiShangJinFuSalesman
//
//  Created by Chinese_Mao on 2017/6/7.
//  Copyright © 2017年 Chinese_Mao. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  点击样式
 */
typedef NS_ENUM(NSInteger, MyWindowClick){
    /**
     *  点击确定按钮
     */
    MyWindowClickForOK = 0,
    /**
     *  点击取消按钮
     */
    MyWindowClickForCancel
};

/**
 *  提示框显示样式
 */
typedef NS_ENUM(NSInteger, HFQAlertViewStyle){
    HFQAlertStyle_Success=0,//成功
    HFQAlertStyle_Fail,//失败
    HFQAlertStyle_Waring,//警告
    HFQAlertStyle_Busy,//繁忙；
    HFQAlertStyle_NoSave//没有服务；
};

typedef void (^HFQAnimatedAlert_callBack)(MyWindowClick buttonIndex);


@interface HFQAnimatedAlert : NSObject

@property (nonatomic, copy) HFQAnimatedAlert_callBack clickBlock ;//按钮点击事件的回调


/**
 *  创建AlertView并展示
 */
- (void)HFQAlert_Style:(HFQAlertViewStyle)style detail:(NSString *)detail;
- (void)HFQAlert_Style:(HFQAlertViewStyle)style title:(NSString *)title detail:(NSString *)detail ;
- (void)HFQAlert_Style:(HFQAlertViewStyle)style title:(NSString *)title detail:(NSString *)detail canleButtonTitle:(NSString *)canle okButtonTitle:(NSString *)ok callBlock:(HFQAnimatedAlert_callBack)callBack;
-(void)delay_Method;
/**
 *  根据内容多少确定弹窗大小
 */
-(void)HFQAlert_Style:(HFQAlertViewStyle)style accordingDetailContentAutoLayout:(NSString *)detail;

@end
